﻿using Manon.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.ConfigCenter.Web.ApplicationCore.Entities
{ 
    [Table("project_config_apply")]
    public class ProjectConfigApply : IBaseEntity
    {
        public int Id { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        public int ProjectId { get; set; }

        /// <summary>
        /// 环境id
        /// </summary>
        public int EnvId { get; set; }

        /// <summary>
        /// 当前配置版本号
        /// </summary>
        public string VersionNumber { get; set; }

        /// <summary>
        /// 机器相关信息
        /// </summary>
        public string MachineInfo { get; set; }

        /// <summary>
        /// 是否成功使用配置
        /// </summary>
        public bool IsApply { get; set; }

        /// <summary>
        /// 未成功使用的原因
        /// </summary>
        public string Msg { get; set; }
         

        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public DateTime? DeleteTime { get; set; }
        public bool IsDeleted { get; set; }
    }
}
